package com.qiche.model;

import java.util.Date;
import javax.persistence.*;

public class Card {
    @Id
    private Long id;

    /**
     * 卡卷编码
     */
    @Column(name = "card_code")
    private String cardCode;

    /**
     * 卡卷类型  0:4s店卡，1:洗车店卡
     */
    @Column(name = "card_type")
    private String cardType;

    /**
     * 创建日期
     */
    @Column(name = "create_date")
    private Date createDate;

    /**
     * 卡卷状态 0正常，1已领取，2已核销
     */
    private String status;

    /**
     * 卡卷金额
     */
    @Column(name = "card_amount")
    private Long cardAmount;

    /**
     * 领取会员
     */
    @Column(name = "customer_id")
    private Long customerId;

    @Column(name = "customer_name")
    private String customerName;

    @Column(name = "customer_phone")
    private String customerPhone;

    /**
     * 卡卷标题
     */
    @Column(name = "card_title")
    private String cardTitle;

    /**
     * 可用时段
     */
    private String available;

    @Column(name = "is_writeoff")
    private Integer isWriteoff;

    /**
     * 核销日期
     */
    @Column(name = "writeoff_date")
    private Date writeoffDate;

    /**
     * 允许核销的开始时间
     */
    @Column(name = "verify_begin_date")
    private Date verifyBeginDate;

    /**
     * 允许核销的结束时间
     */
    @Column(name = "verify_end_date")
    private Date verifyEndDate;

    @Column(name = "merchant_id")
    private Long merchantId;

    @Column(name = "pack_id")
    private Long packId;

    @Column(name = "policy_id")
    private Long policyId;

    /**
     * 核销人
     */
    @Column(name = "verify_user_name")
    private String verifyUserName;

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取卡卷编码
     *
     * @return card_code - 卡卷编码
     */
    public String getCardCode() {
        return cardCode;
    }

    /**
     * 设置卡卷编码
     *
     * @param cardCode 卡卷编码
     */
    public void setCardCode(String cardCode) {
        this.cardCode = cardCode;
    }

    /**
     * 获取卡卷类型  0:4s店卡，1:洗车店卡
     *
     * @return card_type - 卡卷类型  0:4s店卡，1:洗车店卡
     */
    public String getCardType() {
        return cardType;
    }

    /**
     * 设置卡卷类型  0:4s店卡，1:洗车店卡
     *
     * @param cardType 卡卷类型  0:4s店卡，1:洗车店卡
     */
    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    /**
     * 获取创建日期
     *
     * @return create_date - 创建日期
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * 设置创建日期
     *
     * @param createDate 创建日期
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * 获取卡卷状态 0正常，1已领取，2已核销
     *
     * @return status - 卡卷状态 0正常，1已领取，2已核销
     */
    public String getStatus() {
        return status;
    }

    /**
     * 设置卡卷状态 0正常，1已领取，2已核销
     *
     * @param status 卡卷状态 0正常，1已领取，2已核销
     */
    public void setStatus(String status) {
        this.status = status;
    }

  
 
	public Long getCardAmount() {
		return cardAmount;
	}

	public void setCardAmount(Long cardAmount) {
		this.cardAmount = cardAmount;
	}


    /**
     * 获取卡卷标题
     *
     * @return card_title - 卡卷标题
     */
    public String getCardTitle() {
        return cardTitle;
    }

    /**
     * 设置卡卷标题
     *
     * @param cardTitle 卡卷标题
     */
    public void setCardTitle(String cardTitle) {
        this.cardTitle = cardTitle;
    }

    /**
     * 获取可用时段
     *
     * @return available - 可用时段
     */
    public String getAvailable() {
        return available;
    }

    /**
     * 设置可用时段
     *
     * @param available 可用时段
     */
    public void setAvailable(String available) {
        this.available = available;
    }

    /**
     * @return is_writeoff
     */
    public Integer getIsWriteoff() {
        return isWriteoff;
    }

    /**
     * @param isWriteoff
     */
    public void setIsWriteoff(Integer isWriteoff) {
        this.isWriteoff = isWriteoff;
    }

    /**
     * 获取核销日期
     *
     * @return writeoff_date - 核销日期
     */
    public Date getWriteoffDate() {
        return writeoffDate;
    }

    /**
     * 设置核销日期
     *
     * @param writeoffDate 核销日期
     */
    public void setWriteoffDate(Date writeoffDate) {
        this.writeoffDate = writeoffDate;
    }

    /**
     * 获取允许核销的开始时间
     *
     * @return verify_begin_date - 允许核销的开始时间
     */
    public Date getVerifyBeginDate() {
        return verifyBeginDate;
    }

    /**
     * 设置允许核销的开始时间
     *
     * @param verifyBeginDate 允许核销的开始时间
     */
    public void setVerifyBeginDate(Date verifyBeginDate) {
        this.verifyBeginDate = verifyBeginDate;
    }

    /**
     * 获取允许核销的结束时间
     *
     * @return verify_end_date - 允许核销的结束时间
     */
    public Date getVerifyEndDate() {
        return verifyEndDate;
    }

    /**
     * 设置允许核销的结束时间
     *
     * @param verifyEndDate 允许核销的结束时间
     */
    public void setVerifyEndDate(Date verifyEndDate) {
        this.verifyEndDate = verifyEndDate;
    }

    /**
     * @return merchant_id
     */
    public Long getMerchantId() {
        return merchantId;
    }

    /**
     * @param merchantId
     */
    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    /**
     * @return pack_id
     */
    public Long getPackId() {
        return packId;
    }

    /**
     * @param packId
     */
    public void setPackId(Long packId) {
        this.packId = packId;
    }

    /**
     * @return policy_id
     */
    public Long getPolicyId() {
        return policyId;
    }

    /**
     * @param policyId
     */
    public void setPolicyId(Long policyId) {
        this.policyId = policyId;
    }

    public String getVerifyUserName() {
        return verifyUserName;
    }

    public void setVerifyUserName(String verifyUserName) {
        this.verifyUserName = verifyUserName;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerPhone() {
        return customerPhone;
    }

    public void setCustomerPhone(String customerPhone) {
        this.customerPhone = customerPhone;
    }
}